; AMCWIN.CMS contains definitions of variables, command strings for user
; definable menu options, and command string for reacting on events.
; Command strings are made using BaseLISP, a subset of Lisp that can be
; used to retrieve information from AutoManager, perform calculations,
; send commands to other applications, and lots of other things.
;
; Command strings can be triggered in two ways:
; 1) Through an event. For example, when AutoManager is started the event
; 'Open' occurs.
; 2) By choosing a user-definable menu option.
;
; The AutoManager Help file contains more information on how to create
; command strings using BaseLISP.
[AutoCAD Variables]
; The variable AcadExe should be assigned the full path of AutoCAD for
; Windows, for example:
AcadExe=o:\windows\apps\acadwin\acad.exe
[Frame Events]
; The following events will trigger execution of command strings:
Open=[(IntroScreen)][(run "amcrem.exe")]
Close=[(Kill "Remote")]
[General FileMenuItems]
; These menu items will appear in the File menu
AutoCAD Path...=[(setcfgvar (getsysvar "CMSFILE") "AutoCAD variables" "AcadExe" (InputBox "Please enter the path for AutoCAD" "Example: C:\ACADWIN\ACAD.EXE" (getcfgvar (getsysvar "CMSFILE") "AutoCAD variables" "AcadExe")))][(if (fileexist (getcfgvar (getsysvar "CMSFILE") "AutoCAD variables" "AcadExe")) (MessageBox "Confirmation:" "The AutoCAD path exists") (MessageBox "Attention:" "The AutoCAD path has not been set to an existing file!"))]
Edit &Command File...=[(MessageBox "Attention:" "Changed settings won't take effect before you restart AM-Classic.")][(run (strcat "notepad.exe " (getsysvar "CMSFILE")))]